Skip to content

Conversation

technicalreju
Copy link

Odd number series in Hactoberfest

class DivisorSeries
{
public static void main (String args[])
class Test
Copy link
Owner

@KunalRRathod KunalRRathod Oct 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename class to DivisorSeries.

System.out.print(i+"/"+(i*i));
}
}
for (int i=1;i<=n;i++)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The program I created has approach for basic users, You can keep it in two forms.
One for advanced users and mine for newbies.

{
System.out.println("The divisors of 100 are: ");
printDivisors(100);;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Program, you can comment some code as it improves code readability.

Copy link
Owner

@KunalRRathod KunalRRathod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you modified the original Class name ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants